package com.cc.openeye.dynamic.kuikly.follow

import com.tencent.kuikly.core.base.Color
import com.tencent.kuikly.core.base.ComposeView
import com.tencent.kuikly.core.base.ComposeAttr
import com.tencent.kuikly.core.base.ComposeEvent
import com.tencent.kuikly.core.base.ViewBuilder
import com.tencent.kuikly.core.base.ViewContainer

internal class InternalFollowView: ComposeView<InternalFollowViewAttr, InternalFollowViewEvent>() {
    
    override fun createEvent(): InternalFollowViewEvent {
        return InternalFollowViewEvent()
    }

    override fun createAttr(): InternalFollowViewAttr {
        return InternalFollowViewAttr()
    }

    override fun body(): ViewBuilder {
        val ctx = this
        return {
            attr {
                width(pagerData.pageViewWidth)
                backgroundColor(Color.RED)
            }
        }
    }
}


internal class InternalFollowViewAttr : ComposeAttr() {

}

internal class InternalFollowViewEvent : ComposeEvent() {
    
}

internal fun ViewContainer<*, *>.FollowView(init: InternalFollowView.() -> Unit) {
    addChild(InternalFollowView(), init)
}